Why are some maven projects in IntelliJ greyed out?
asked Mar 24, 2017 at 16:25
1
Seems images are better way to answer this question.
- Projects are greyed out when you ignore them in your IntelliJ workspace.
- To add those projects or modules back in your workspace, right click on them and click on unignore projects as shown in below screenshot.
- Alternatively, you can also go to File — Settings -> Build, execution and deployment -> Build Tools -> Maven -> Ignored Files, now select whichever projects/modules you may wish to retain in your IntelliJ workspace.
user
14.4k6 gold badges25 silver badges123 bronze badges
answered Mar 24, 2017 at 16:33
Pratik AmbaniPratik Ambani
2,4761 gold badge18 silver badges26 bronze badges
5
Right click on the pom -> maven -> unignore. Then right click on pom -> maven -> reload project.
Seems some kind of bug when you open a child subdirectory then open the parent in IntelliJ.
answered Sep 1, 2021 at 20:15
rogerdpackrogerdpack
62k36 gold badges265 silver badges386 bronze badges
3
This is known issue and interlinked to 3 more IDEA issue. You can find more details here.
Indicate that pom.xml is ignored when editing it
Lot of us might spend more time and then end up deleting module & re-creating it.
But @Pratik Ambani solutions works great!!, option 3 worked in my case.
answered Jul 6, 2021 at 23:27
Problem environment
Maven parent-child engineering project, generated when the sub-module is created
Problem Description
problem causes
Since the module with the same name was created before (the module with the same name was created before and deleted), there are traces in IDEA. Recreating a new module with the same name will make IDEA mistakenly think that it is a module that was deleted before, so this pom.xml file is automatically ignored
Solution
1. Click file> Setting to enter the setting
2. Find the lgnored file, uncheck the selected option on the right, and then click ok
3. It is recommended to click Refresh in Maven in the upper right corner, so that the pom.xml file will be changed back
Use this page to specify the pom.xml files or their paths of Maven modules, which you want to exclude from the project when you ignore a Maven subproject.
Item |
Description |
---|---|
Path patterns |
Enter the comma-separated list of paths to be ignored during the build. Wildcards are honored. For example, entering |
Ignored files |
Check the individual files to be ignored during the build. If you have a multi-module project, IntelliJ IDEA lists all POM files of your project. Selecting the checkbox against a POM file will equal ignoring the project or module in the Maven structure. You can also use the Maven tool window to ignore or unignore projects from the importing. |
Last modified: 18 May 2022
-
Home -
Software Programming -
pom.xml is ignored intellij as
This topic has been deleted. Only users with topic management privileges can see it.
-
I did rebase to collect all the committs in one, and Iml’s missing file. Reconstructed it by looking at local history in IntellijIDEA. The modul’s been freshened again, but the man is not:
On the left, it can be seen that the pom is grey and stricken, and on the right, a restored iml file. How do you fix it?
-
Somehow it worked.
- Remove the memory.
- Removal of disposal
- Subject module — right button of mouse — add framework support — maven
- 1 / 1
Suggested Topics
-
2
0
Votes2
Posts0
ViewsO
Finally, I managed to resolve it the following way, as indicated https://coderwall.com/p/e5fxrw/use-hibernate-4-3-x-with-jta-on-glassfish-4 I downloaded the version jar I’m using from Hibernate http://hibernate.org/orm/downloads/ I copied the required jars (quick required) at {Glassfish4 direcory}/glassfish/lib. I copied jboss-logging-3.3.2.Finish at {Glassfish4 direcory}/glassfish/lib/endorsedI changed the head of persistence.xml, thus remaining: <?xml version=»1.0″ encoding=»UTF-8″?>
<persistence version=»2.1″
xmlns=»http://xmlns.jcp.org/xml/ns/persistence» xmlns:xsi=»http://www.w3.org/2001/XMLSchema-instance»
xsi:schemaLocation=»http://xmlns.jcp.org/xml/ns/persistence http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/persistence/persistence_2_1.xsd»>
<persistence-unit name=»PsePU» transaction-type=»JTA»>
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<jta-data-source>jdbc/PseMySql</jta-data-source>
<properties>
<property name=»hibernate.dialect» value=»org.hibernate.dialect.MySQLDialect» />
<!— GLASSFISH SPECIFIC: The following property is necessary for
deployment within Glassfish. Note that each application
server vendor has its own unique value. —>
<property name=»hibernate.transaction.manager_lookup_class» value=»org.hibernate.transaction.SunONETransactionManagerLookup» />
<property name=»hibernate.transaction.jta.platform» value=»org.hibernate.service.jta.platform.internal.SunOneJtaPlatform» />
</properties>
</persistence-unit>
</persistence>
I can already make the deployment, if anything comes up, I’ll update the post. Greetings. -
2
0
Votes2
Posts0
ViewsA
All the blame is these lines:int data = Integer.parseInt(elem[3]);
int number = Integer.parseInt(elem[4])
Use the sweet to clarify the situation. Stop the program on these lines and check the value of the variables. elem[3] and elem[4]♪ It’s almost certainly not the whole number of symbols, but some other text.UpdatingAt first, each line of the head shall be marked ‘#, for example.
Then in the cycle, while conducting the test:
If the symbol ‘#’ is the first in the row, let that line pass. It’ll look like,while(…){
if (line[0]==’#’)
continue;
parceteamline(line, teamlist);
} -
2
0
Votes2
Posts0
ViewsS
Mandatory elements must have the attribute minOccurs=»1″ and then close a xs:sequence You can’t put more elements, you must start another xs:sequence or another structure.In your case, the element any part of the sequence as the last element and the scheme would remain:<xs:complexType>
<xs:sequence>
<xs:element maxOccurs=»unbounded» name=»evento»>
<xs:complexType>
<xs:sequence>
<xs:element name=»ID_INSTANCIA» type=»xs:string» minOccurs=»1″ />
<xs:element name=»ACTIVIDAD» type=»xs:string» minOccurs=»1″ />
<xs:any minOccurs=»1″ maxOccurs=»unbounded» processContents=»skip»/>
</xs:sequence>
</xs:complexType>
</xs:element></xs:sequence>
</xs:complexType> -
2
0
Votes2
Posts0
ViewsF
input Single Gate (not closed) :.reg {
position: absolute;
padding: 10px;
margin-left: 300px;
border-radius:10px;
box-shadow: 0 1px 0 #ccc inset;
transition:500ms all ease;
width: 150px;
}
.reg:hover {
width: 180px;
}
#log {
margin-top: 150px;
}
#pass {
margin-top: 200px;
}
#rep {
margin-top: 250px;
}<form>
<input class = ‘reg’ id = ‘log’ placeholder = ‘Логин’ maxlength=»16″>
<input class = ‘reg’ id = ‘pass’ placeholder = ‘Пароль’ type = ‘text’ maxlength=»10″>
<input class = ‘reg’ id = ‘rep’ placeholder = ‘Повторите пароль’ type = ‘password’>
</form> -
2
0
Votes2
Posts0
ViewsP
Put a mouse on the element you need, then press it. Alt+Enter and pick as a screamer: Default exports are bad practices, and you’ll be able to export properly:export { TestComp } instead export default TestComp
-
2
0
Votes2
Posts0
ViewsT
tag View and tag fragments are different things. Fragment won’t be found by the fog designated for any one. View♪ he needs to take his own tag through the method ♪ FragmentManagere.g.:fragmentManager.beginTransaction().replace(R.id.fragment_container, mFragment, TAG);
When you get the fragment on the screen, give him the tag as in the method above. And check the visibility after check NULL:if(fragment!=null && !fragment.isVisible()){
//Log.i(TAG,dataSnapshot.getKey());
push(dataSnapshot.getKey());
} -
2
0
Votes2
Posts0
ViewsAnd it’s been a month. I finally found the answer. It’s all set. https://www.youtube.com/watch?v=w_PsCNqqcE4&t video. This file is created by the following logic:<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation=»org.apache.maven.plugins.shade.resource.ManifestResourceTransformer»>
<mainClass>MainLauncher</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
It’s worth noting that there’s a launcher in the Taega, not a major class. Let’s say our main class is Main. The Launcher code then appears as follows:public class MainLauncher {
public static void main(String[] args) {
Main.main(args);
}
}
It’s a very important moment, because without this jar, I don’t want to start. Next,’s our java-jar or common double-click.Here’s my pom.xml: <?xml version=»1.0″ encoding=»UTF-8″?>
<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/xsd/maven-4.0.0.xsd»>
<modelVersion>4.0.0</modelVersion>
<groupId>com.vladhuk</groupId>
<artifactId>MavenProject</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging><dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>11.0.1</version>
</dependency><dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>11.0.1</version>
</dependency><dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>11.0.1</version>
</dependency>
</dependencies><build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin><plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>Main</mainClass>
</configuration>
</plugin><plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation=»org.apache.maven.plugins.shade.resource.ManifestResourceTransformer»>
<mainClass>MainLauncher</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build></project>
-
2
0
Votes2
Posts1
ViewsD
You can add libraries to «lib/ext» folder as follows:
<configuration>
<jmeterExtensions>
<artifact>kg.apc:jmeter-plugins-casutg:2.4</artifact>
</jmeterExtensions>
</configuration>Replace kg.apc:jmeter-plugins-casutg:2.4 with your own artifact in form of:
groupId:artifactId:versionReferences:
Guide to naming conventions on groupId, artifactId and version
Adding jar’s to the /lib/ext directory
Five Ways To Launch a JMeter Test without Using the JMeter GUI -
2
0
Votes2
Posts0
ViewsJ
You can see the maven servers directly. https://maven.apache.org/guides/mini/guide-central-repository-upload.html Alternative servers have paid and free repositories compatible with maven cm. https://mymavenrepo.com/ ♪ https://aws.amazon.com/s3/ (sighs) http://www.yegor256.com/2015/09/07/maven-repository-amazon-s3.html Instruction, https://www.jfrog.com/artifactory/buy-now/#Cloud etc.
-
2
0
Votes2
Posts0
ViewsXml documents are good for LINQ.XElement source = XElement.Load(@»source.xml»);
var parsed = (from date in source.Descendants(«Дата»)
let d = new
{
Day = date.Element(«День»).Value,
Month = date.Element(«Месяц»).Value,
Year = date.Element(«Год»).Value
}
select d)
.ToArray();
It’s not gonna be anywhere, but it has to work. -
2
0
Votes2
Posts0
ViewsG
In pom.xml, the parent was misplaced that way.<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.2.RELEASE</version>
<relativePath/>
</parent>
and dependence <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</dependency> -
2
0
Votes2
Posts0
ViewsK
It’s possible in the code of the method to write to the log or the console of the glass (which can be obtained by using the method http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#getStackTrace() )UPDIf you want to analyze the chain of IDE challenge, IDEA has a thing. http://www.jetbrains.com/idea/webhelp/building-call-hierarchy.html ♪
-
2
0
Votes2
Posts0
ViewsClicks on Enable Auto-import in the window in the right lower corner.
-
2
0
Votes2
Posts0
ViewsWhat you should do is add dependency to the servlets library. As you indicate that you work with maven, this would be dependency:<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<!—
scope provided porque no debes agregar estas librerías
directamente al proyecto, el contenedor de servlets
o servidor de aplicaciones que uses se encargará de
brindar estas librerías
—>
<scope>provided</scope>
</dependency>
Adapted from: https://stackoverflow.com/a/22756202/1065197 -
2
0
Votes2
Posts0
ViewsT
♪ write() Method xml_declaration=True Tell me.
- Forum
- Unread
- Recent
- Users
- Groups
- Menu
- Jobs
- Tools
- Companies
- Conferences
- Courses