Announcement

Collapse
No announcement yet.

Maven mergen zweier Maven Projekte anhand der pom.xml

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Christian Marquardt
    replied
    Wird ja auch eine Exception geworfen....

    Leave a comment:


  • Litti
    replied
    Ich habe jetzt mal den Code in der Testklasse auskommentiert und Imports bereinigt.

    Dann geht es, aber es kommt immer noch eine Fehlermeldung und es wird kein war File angelegt.

    Code:
    constituent[0]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/
    constituent[1]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-core-3.0.4.jar
    constituent[2]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-model-3.0.4.jar
    constituent[3]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-settings-3.0.4.jar
    constituent[4]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-settings-builder-3.0.4.jar
    constituent[5]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-repository-metadata-3.0.4.jar
    constituent[6]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-artifact-3.0.4.jar
    constituent[7]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-plugin-api-3.0.4.jar
    constituent[8]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-model-builder-3.0.4.jar
    constituent[9]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-aether-provider-3.0.4.jar
    constituent[10]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/aether-api-1.13.1.jar
    constituent[11]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/aether-util-1.13.1.jar
    constituent[12]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/plexus-interpolation-1.14.jar
    constituent[13]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/plexus-utils-2.0.6.jar
    constituent[14]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/plexus-component-annotations-1.5.5.jar
    constituent[15]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/plexus-sec-dispatcher-1.3.jar
    constituent[16]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-embedder-3.0.4.jar
    constituent[17]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/plexus-cipher-1.7.jar
    constituent[18]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/commons-cli-1.2.jar
    constituent[19]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/maven-compat-3.0.4.jar
    constituent[20]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/wagon-provider-api-2.2.jar
    constituent[21]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-plexus-shim-2.3.0.jar
    constituent[22]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/javax.inject-1.jar
    constituent[23]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-bean-reflect-2.3.0.jar
    constituent[24]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-bean-locators-2.3.0.jar
    constituent[25]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-bean-binders-2.3.0.jar
    constituent[26]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-bean-scanners-2.3.0.jar
    constituent[27]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-bean-converters-2.3.0.jar
    constituent[28]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-plexus-metadata-2.3.0.jar
    constituent[29]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-plexus-converters-2.3.0.jar
    constituent[30]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-plexus-locators-2.3.0.jar
    constituent[31]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-plexus-binders-2.3.0.jar
    constituent[32]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-bean-inject-2.3.0.jar
    constituent[33]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-plexus-scanners-2.3.0.jar
    constituent[34]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guice-plexus-lifecycles-2.3.0.jar
    constituent[35]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/sisu-guice-3.1.0-no_aop.jar
    constituent[36]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/guava-11.0.2.jar
    constituent[37]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/aether-connector-wagon-1.13.1.jar
    constituent[38]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/aether-spi-1.13.1.jar
    constituent[39]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/aether-impl-1.13.1.jar
    constituent[40]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/aether-connector-asynchttpclient-1.13.1.jar
    constituent[41]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/wagon-ahc-1.2.1.jar
    constituent[42]: file:/D:/Eclipse-Luna-11_07_2014/Eclipse_Luna/configuration/org.eclipse.osgi/533/0/.cp/jars/wagon-file-2.2.jar
    ---------------------------------------------------
    Exception in thread "main" java.lang.NoClassDefFoundError: com/ning/http/client/AsyncHttpProvider
    	at org.sonatype.aether.connector.async.AsyncRepositoryConnectorFactory.newInstance(AsyncRepositoryConnectorFactory.java:106)
    	at org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteRepositoryManager.java:346)
    	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453)
    	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
    	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
    	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
    	at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)
    	at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)
    	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
    	at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:199)
    	at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:353)
    	at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:321)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:175)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:78)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: java.lang.ClassNotFoundException: com.ning.http.client.AsyncHttpProvider
    	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
    	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
    	... 35 more

    Leave a comment:


  • Christian Marquardt
    replied
    Die Klasse referenziert import core.security.model. Dieser Import wird nicht gefunden. Das Jar? ist ggf. als dependencies einzubinden

    Leave a comment:


  • Litti
    replied
    Aber das verstehe ich nicht warum das so ist? Denn die Klassen sind alle da. Die pom ist ja vom Basisprojekt selber. Es werden ja Fehler an der CreateTables.java angemerkt

    Hier mal die Testklasse

    Code:
    package database.create.tables;
    
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Vector;
    
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.test.context.ContextConfiguration;
    import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
    import org.springframework.test.context.transaction.TransactionConfiguration;
    import org.springframework.transaction.annotation.Transactional;
    
    import core.security.model.SystemGroupModel;
    import core.security.model.SystemLanguagesModel;
    import core.security.model.SystemRoleModel;
    import core.security.model.SystemSettingsModel;
    import core.security.model.SystemUserModel;
    import core.security.model.interfaces.SystemGroupModelInterface;
    import core.security.model.interfaces.SystemLanguagesModelInterface;
    import core.security.model.interfaces.SystemRoleModelInterface;
    import core.security.model.interfaces.SystemSettingsModelInterface;
    import core.security.model.interfaces.SystemUserModelInterface;
    
    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations = "classpath:META-INF/spring/database/hibernate.cfg.xml")
    @TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = false)
    @Transactional
    public class CreateTables {
    	
    	@Autowired
    	private SessionFactory sessionFactory;
    	
    	@Test
    	public void createTables() {
    		try {
    			Session session = sessionFactory.getCurrentSession();
    
    			// ersten User / Admin anlegen
    			SystemUserModelInterface sumi = new SystemUserModel();
    			sumi.setUsername("a")
    				.setPasswd("a")
    				.setFirstname("Admin")
    				.setLastname("istrator");
    
    			// Standard-Rollen anlegen
    			HashMap<String, String> systemRoles = new HashMap<String, String>();
    			systemRoles.put("ADMIN_USER_SECURITY", "Standardrecht für die Administration der Nutzerdaten, Rollen und Gruppen");
    			systemRoles.put("ADMIN_DATA", "Standardrecht für die Administration aller Tabellen der Datenbank mit Ausnahme der Nutzerdaten, Rollen und Gruppen");
    			systemRoles.put("ADMIN_DATA_SECURITY", "Daten-Administrator für Rechtevergabe");
    			systemRoles.put("SYSTEM_CONTROLLER", "Für reine System Entwickler und Controller.");
    			List<SystemRoleModel> userRoles = new Vector<SystemRoleModel>();
    			
    			for (Map.Entry<String, String> role : systemRoles.entrySet()) {
    				SystemRoleModelInterface srmi = new SystemRoleModel();
    				srmi.setRoleCaption(role.getKey())
    					.setDescription(role.getValue());
    				session.saveOrUpdate(srmi);
    				// Alle Rollen in einer Liste speichern für Übergabe an Admin
    				userRoles.add((SystemRoleModel) srmi);
    				srmi = null;
    			}
    
    			// Rollen an Admin übergeben
    			sumi.setUserRoles(userRoles);
    
    			session.saveOrUpdate(sumi);
    			
    			// standardsprache Deutsch speichern
    			SystemLanguagesModelInterface languageModel = new SystemLanguagesModel();
    			languageModel.setNotiz("Deutsch")
    				.setNr("de_DE");
    			session.saveOrUpdate(languageModel);
    			
    			// standard settings speichern
    			SystemSettingsModelInterface settingsModel = new SystemSettingsModel();
    			settingsModel.setUserId((SystemUserModel) sumi)
    				.setClientView("mobile")
    				.setFavorite("tools")
    				.setLanguageId((SystemLanguagesModel) languageModel);
    			session.saveOrUpdate(settingsModel);
    			
    			// standard Gruppen speichern
    			HashMap<String, String> groups = new HashMap<String, String>();
    			groups.put("Adminstratoren", "");
    			groups.put("Systemcontroller", "");
    			groups.put("Vollnutzer", "");
    			
    			for (Map.Entry<String, String> group : groups.entrySet()) {
    				SystemGroupModelInterface groupModel = new SystemGroupModel();
    				groupModel.setGroupaction(group.getKey())
    					.setDescription(group.getValue());
    				
    				session.saveOrUpdate(groupModel);
    				
    				groupModel = null;
    			}
    			
    			sessionFactory.close();
    		}
    		catch (Exception e) {
    			e.printStackTrace();
    		}
    	}
    }
    Bei stackoverflow fand ich dies dazu http://stackoverflow.com/questions/1...sage-unhelpful

    Aber wirklich schlau werde ich nicht daraus.

    Leave a comment:


  • Christian Marquardt
    replied
    Sicherlich erzeugt er dann kein war, wenn die Klassen nicht compiliert werden können. Musst also erst die Fehler beseitigen. Vermute dein securitiy Projekt ist nicht eingebunden (package core.security.model )

    Leave a comment:


  • Litti
    replied
    Und hier der Rest des Stacks.

    Code:
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project decon_fm_version5: Compilation failure: Compilation failure:
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[18,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[19,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[20,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[21,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[22,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[23,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[24,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[25,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[26,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[27,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[44,3] error: cannot find symbol
    [ERROR] symbol:   class SystemUserModelInterface
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[44,39] error: cannot find symbol
    [ERROR] symbol:   class SystemUserModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[56,8] error: cannot find symbol
    [ERROR] symbol:   class SystemRoleModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[56,48] error: cannot find symbol
    [ERROR] symbol:   class SystemRoleModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[59,4] error: cannot find symbol
    [ERROR] symbol:   class SystemRoleModelInterface
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[59,40] error: cannot find symbol
    [ERROR] symbol:   class SystemRoleModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[64,19] error: cannot find symbol
    [ERROR] symbol:   class SystemRoleModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[74,3] error: cannot find symbol
    [ERROR] symbol:   class SystemLanguagesModelInterface
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[74,53] error: cannot find symbol
    [ERROR] symbol:   class SystemLanguagesModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[80,3] error: cannot find symbol
    [ERROR] symbol:   class SystemSettingsModelInterface
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[80,52] error: cannot find symbol
    [ERROR] symbol:   class SystemSettingsModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[84,20] error: cannot find symbol
    [ERROR] symbol:   class SystemLanguagesModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[81,28] error: cannot find symbol
    [ERROR] symbol:   class SystemUserModel
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[94,4] error: cannot find symbol
    [ERROR] symbol:   class SystemGroupModelInterface
    [ERROR] location: class CreateTables
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[94,47] error: cannot find symbol
    [ERROR] -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

    Leave a comment:


  • Litti
    replied
    Jetzt bekomme ich folgende Fehler ausgeworfen. Die waren vor 3 Monaten nicht da.

    Das passierte beim ausführen von clean install über run->as maven build im Ecilpse.

    Code:
    [INFO] Scanning for projects...
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building decon_fm_version5 Maven Webapp 0.0.2
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ decon_fm_version5 ---
    [INFO] Deleting D:\Projects\Java\decon_fm_version5\target
    [INFO] 
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ decon_fm_version5 ---
    [debug] execute contextualize
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 35 resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ decon_fm_version5 ---
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ decon_fm_version5 ---
    [debug] execute contextualize
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory D:\Projects\Java\decon_fm_version5\src\test\resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ decon_fm_version5 ---
    [INFO] Changes detected - recompiling the module!
    [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
    [INFO] Compiling 2 source files to D:\Projects\Java\decon_fm_version5\target\test-classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR : 
    [INFO] -------------------------------------------------------------
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[18,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[19,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[20,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[21,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[22,26] error: package core.security.model does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[23,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[24,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[25,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[26,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[27,37] error: package core.security.model.interfaces does not exist
    [ERROR] D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[44,3] error: cannot find symbol
    [ERROR]   symbol:   class SystemUserModelInterface
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[44,39] error: cannot find symbol
    [ERROR]   symbol:   class SystemUserModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[56,8] error: cannot find symbol
    [ERROR]   symbol:   class SystemRoleModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[56,48] error: cannot find symbol
    [ERROR]   symbol:   class SystemRoleModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[59,4] error: cannot find symbol
    [ERROR]   symbol:   class SystemRoleModelInterface
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[59,40] error: cannot find symbol
    [ERROR]   symbol:   class SystemRoleModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[64,19] error: cannot find symbol
    [ERROR]   symbol:   class SystemRoleModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[74,3] error: cannot find symbol
    [ERROR]   symbol:   class SystemLanguagesModelInterface
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[74,53] error: cannot find symbol
    [ERROR]   symbol:   class SystemLanguagesModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[80,3] error: cannot find symbol
    [ERROR]   symbol:   class SystemSettingsModelInterface
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[80,52] error: cannot find symbol
    [ERROR]   symbol:   class SystemSettingsModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[84,20] error: cannot find symbol
    [ERROR]   symbol:   class SystemLanguagesModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[81,28] error: cannot find symbol
    [ERROR]   symbol:   class SystemUserModel
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[94,4] error: cannot find symbol
    [ERROR]   symbol:   class SystemGroupModelInterface
      location: class CreateTables
    D:\Projects\Java\decon_fm_version5\src\test\java\database\create\tables\CreateTables.java:[94,47] error: cannot find symbol
    [INFO] 25 errors 
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 8.495s
    [INFO] Finished at: Tue Feb 03 13:00:08 CET 2015
    [INFO] Final Memory: 10M/169M
    [INFO] ------------------------------------------------------------------------

    Leave a comment:


  • Christian Marquardt
    replied
    Dann prüfe doch mal die Consolenausgabe auf Fehler
    [INFO] Webapp assembled in [265 msecs]
    [INFO] Building war: D:\eclipse_demo\target\demoxx.war

    müsste da irgendwo stehen
    Zusätzlich müsste im target-Verzeichnis ein Ordner deines Projektes sein. demo/....Dieser müsste in Form der Webserverstruktur angelegt sein

    Leave a comment:


  • Litti
    replied
    Ich habe mal ein Screenshot meiner Projektstruktur vom Eclipse gemacht und da ist kein war drin.
    Attached Files

    Leave a comment:


  • Christian Marquardt
    replied
    Das sollte im target ein war erstellen

    Leave a comment:


  • Litti
    replied
    Ich poste mal meine ganze pom.xml

    Momentan bin ich grad sehr verwirrt und weiß nicht wirklich wo mein Fehler liegt.

    So habe ich es aus einem Tutorial gelesen.

    Code:
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>deconFm_Version5</groupId>
    	<artifactId>decon_fm_version5</artifactId>
    	<packaging>war</packaging>
    	<version>0.0.2</version>
    	<name>decon_fm_version5 Maven Webapp</name>
    	<url>http://maven.apache.org</url>
    	
    	<properties>
    		<junit.version>4.9</junit.version>
    		
    		<spring.version>3.2.0.RELEASE</spring.version>
    		
    		<hibernate.core>3.3.2.GA</hibernate.core>
    		<hibernate.annotations>3.4.0.GA</hibernate.annotations>
    		<javax.persistence>1.0</javax.persistence>
    		<javassist.version>3.12.1.GA</javassist.version>
    		<c3p0.version>0.9.1.2</c3p0.version>
    		<postgresql.version>9.1-901.jdbc4</postgresql.version>
    		
    		<jersey.version>1.13</jersey.version>
    		
    		<jackson.version>1.9.13</jackson.version>
    		
    		<servlet.version>2.5</servlet.version>
    		
    		<org.slf4j.version>1.7.2</org.slf4j.version>
    		<log4j.version>1.2.16</log4j.version>
    		
    		<commons.collections.version>3.2.1</commons.collections.version>
    <!-- 		<commons.lang.version>2.3</commons.lang.version> -->
    	</properties>
    	
    	<dependencies>
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>${junit.version}</version>
    			<scope>test</scope>
    		</dependency>
    		
    		<!-- Spring Komponenten -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-core</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-orm</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-web</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-test</artifactId>
    			<version>${spring.version}</version>
    			<scope>test</scope>
    		</dependency>
    		
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context-support</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    		
    		
    		<!-- Datenbank Komponenten -->
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-core</artifactId>
    			<version>${hibernate.core}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-annotations</artifactId>
    			<version>${hibernate.annotations}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>javax.persistence</groupId>
    			<artifactId>persistence-api</artifactId>
    			<version>${javax.persistence}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>javassist</groupId>
    			<artifactId>javassist</artifactId>
    			<version>${javassist.version}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>c3p0</groupId>
    			<artifactId>c3p0</artifactId>
    			<version>${c3p0.version}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>postgresql</groupId>
    			<artifactId>postgresql</artifactId>
    			<version>${postgresql.version}</version>
    		</dependency>
    		
    		<!-- Jersey Komponenten -->
    		<dependency>
    			<groupId>com.sun.jersey</groupId>
    			<artifactId>jersey-server</artifactId>
    			<version>${jersey.version}</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>com.sun.jersey</groupId>
    			<artifactId>jersey-json</artifactId>
    			<version>${jersey.version}</version>
    		</dependency>
    		
    		<!-- Apache Components -->
    		<dependency>
    			<groupId>commons-lang</groupId>
    			<artifactId>commons-lang</artifactId>
    			<version>2.3</version>
    		</dependency>
    		
    		<!-- Jersey - Spring Integration -->
    		<dependency>
    			<groupId>com.sun.jersey.contribs</groupId>
    			<artifactId>jersey-spring</artifactId>
    			<version>1.13</version>
    			<exclusions>
    				<exclusion>
    					<groupId>org.springframework</groupId>
    					<artifactId>spring</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.springframework</groupId>
    					<artifactId>spring-core</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.springframework</groupId>
    					<artifactId>spring-web</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.springframework</groupId>
    					<artifactId>spring-beans</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.springframework</groupId>
    					<artifactId>spring-context</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>org.springframework</groupId>
    					<artifactId>spring-aop</artifactId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		
    		<!-- Jackson -->
    		<dependency>
    			<groupId>org.codehaus.jackson</groupId>
    			<artifactId>jackson-mapper-asl</artifactId>
    			<version>${jackson.version}</version>
    		</dependency>
    		
    		<!-- Servlet -->
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>servlet-api</artifactId>
    			<version>${servlet.version}</version>
    		</dependency>
    		
    		<!-- Logging Komponenten -->
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-api</artifactId>
    			<version>${org.slf4j.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-log4j12</artifactId>
    			<version>${org.slf4j.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>${log4j.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-collections</groupId>
    			<artifactId>commons-collections</artifactId>
    			<version>${commons.collections.version}</version>
    		</dependency>
    	</dependencies>
    	<build>
    		<finalName>${project.artifactId}</finalName>
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<version>3.1</version>
    				<configuration>
    					<verbose>false</verbose>
    					<fork>true</fork>
    					<executable>${JAVA_HOME}/javac</executable>
    					<source>1.7</source>
    					<target>1.7</target>
    				</configuration>
    			</plugin>
    		</plugins>
    	</build>
    </project>

    Leave a comment:


  • Christian Marquardt
    replied
    Sorryaber da läuft doch ein Menge schief. Was nun jar oder war?
    Ein install führt nicht dazu, dass die pom.xml irgendwo hin kopiert wird

    Leave a comment:


  • Litti
    replied
    Ich hatte zu Beginn maven clean install ausgeführt und dann lag alles so in den Ordnern wie ich beschrieben habe. Aber um das Projekt auf dem Tomcat Server auszuführen muss es doch ein war File sein oder nicht?

    Leave a comment:


  • Christian Marquardt
    replied
    Wozu erzeugt du ein war, wenn du ein jar willst -> siehe Link

    Im Target-Verzeichnis sollte keine pom.xml liegen -> wird bei clean aufgeräumt

    Leave a comment:


  • Litti
    replied
    Nein das Projekt selber ist mit packaging war in der pom.xml ausgezeichnet. Im Target Ordner liegen nur die pom.xml pom.properties und eine MANIFEST.MF Datei.

    Ich momentan nicht was ich wie verändern muss. Ich habe nämlich das Basisprojekt nun fertig und möchte daraus ein JAR File machen.

    Leave a comment:

Working...
X